import Layout from '@/layout'

export default {
  path: '/departments',
  component: Layout,
  // 给 layout 配置二级路由
  children: [
    {
      // 二级路由 path 通常需要加 /
      // 如果子路由的路径是 '' 空字符串, 当前路由默认匹配
      path: '',
      name: 'departments',
      component: () => import('@/views/departments/departments.vue'),
      meta: { title: '组织架构', icon: 'tree' }
      // hidden: true
    }
  ]
}
